x86-64: do not pass unmanageable amounts of memory to Dom0
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 18 Jun 2009 09:31:17 +0000 (10:31 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 18 Jun 2009 09:31:17 +0000 (10:31 +0100)
commit55f3362de4f5ef0534944e688930ae72eed15782
treeadbea1ea6fa0085b5f3495b3fee61eeb1d6a9af9
parentc92018768b91b5250bb41fbc0e29e21f86b89ac2
x86-64: do not pass unmanageable amounts of memory to Dom0

Due to address space restrictions it is not possible to successfully
pass more than about 500Gb to a Linux Dom0 unless its kernel specifies
a non-default phys-to-machine map location via XEN_ELFNOTE_INIT_P2M.

For non-Linux Dom0 kernels I can't say whether the limit could be set
to close to 1Tb, but since passing such huge amounts of memory isn't
very useful anyway (and can be enforced via dom0_mem=3D), the patch
doesn't attempt to guess the kernel type and restricts the memory
amount in all cases.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/domain_build.c